#ifndef __THREAD_POOL__
#define __THREAD_POOL__
#include<my_header.h>
#include"tidArr.h"
#include"taskQueue.h"
#include "train.h"
#include "Func.h"
typedef struct threadPool_s
{
    tidArr_t tidArr; //线程id数组
    taskQueue_t taskQueue;//任务队列
    pthread_mutex_t mutex;
    pthread_cond_t cond;
    int exitFlag;
}threadPool_t;
int threadPoolInit(threadPool_t *pthreadPool,int workerNum);
int makeworker(threadPool_t *pthreadPool);
int initTcp(char *ip, char *port);
int epollAdd(int epfd, int fd);
int epollDel(int epfd, int fd);
int transFile(int netfd);
#endif 
